package com.cn.lp.api;

import com.cn.lp.TestApi;
import com.cn.lp.openapi.base.OpenApiClientConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * value对应服务名称
 * url 对应地址，如果url不为空，则优先url，否则走服务名调用
 */
@FeignClient(value = "${text.name:TestApiClient}", url = "${text.url:}")
@RequestMapping(headers = {OpenApiClientConstants.DYN_URL + "=text.url1", OpenApiClientConstants.DYN_NAME + "=text.name1"},
    produces = {MediaType.APPLICATION_JSON_UTF8_VALUE})
public interface TestApiClient extends TestApi {
    
}
